package com.wbt;

import com.wbt.call.CallService;
import com.wbt.service.IService;
import org.springframework.context.ApplicationContext;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.EnableAspectJAutoProxy;

/**
 * Hello world!
 *
 */
@Configuration
@EnableAspectJAutoProxy
@ComponentScan("com.wbt.**")
public class App 
{
    public static void main( String[] args ) {
        System.out.println( "Hello World!" );

        ApplicationContext context = new AnnotationConfigApplicationContext(App.class);

        CallService callService = (CallService) context.getBean("callService");
        callService.call();
    }
}
